from survey import AnonymousSurvey

question = "what language dis you first learn to speak?"
language_survey = AnonymousSurvey(question)

#显示问题并存储答案
language_survey.show_question()
print("Enter 'q' at any time to quit.\n")
while True:
    response = input("language: ")
    if response == 'q':
        break
    language_survey.store_respinse(response)

# 显示调查结果
print("\nThank you to everyone who participated in the survey!")
language_survey.show_question()
language_survey.show_result()